-- GENERATED SPELL FOR [Stormwind Guard] --


function spell0_1423(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(12170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1423', 577, 1)
end

function spell1_1423(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_1423', 5265, 1)
end

function Sorts_1423(pUnit, Event)
local choix_sorts_1423 = math.random(0, 1)
if choix_sorts_1423 == 0 then
pUnit:RegisterEvent('spell0_1423', 1, 1)
end
if choix_sorts_1423 == 1 then
pUnit:RegisterEvent('spell1_1423', 1, 1)
end
end

function mob1423_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1423', math.random(1500, 3000), 1)
end

function mob1423_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1423_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1423_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1423, 1, 'mob1423_Action')
RegisterUnitEvent(1423, 2, 'mob1423_Leave')
RegisterUnitEvent(1423, 3, 'mob1423_Kill')
RegisterUnitEvent(1423, 4, 'mob1423_Die')
